<agenttpl file="user_center_header" />
<section>
    <div class="user_center main mygameCenter">
        <div class="banner_1">
            <img src="__PUBLIC__img/1200-200+.jpg" alt=""/>
        </div>
        <div class="user_center_main page-content">
            <agenttpl file="share/side" />
            <div class="page-right" style="height: 955px">
                <div class="page-right-header">
                    <div>推广中心</div>
                </div>

                <div class="mygameHP mygameHP_2">
                    <img alt="" src="__PUBLIC__img/xslc.png" style="width:900px;margin:20px auto 0 auto;display:block;">
                    <div class="hpleft">
                        <div class="editname">
                            <div class="editnamecontentheader">
                                <img src="__PUBLIC__img/editname.png" alt="">
                            </div>

                            <div class="editnamecontent">
                                <div class="editContent">
                                    <div class="editContentHeader">推广链接</div>
                                    <div class="editcontentC">
                                        <input type="text" id="centerName" value="{$mylink}" disabled="disabled" style='width:350px;'>
                                        <div class="xiugaiBtn">
                                           <a href="javascript:;" class="btn btn-default btn-sm link_copy_btn" data-clipboard-text="{$mylink}" 
                                           data-link="{$mylink}">复制链接</a>
                                        </div>

                                        <div id="update" onclick="update();" class="querenBtn">确认</div>
                                        <input type="hidden" id="ctx" value="">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!--游戏中心app-->
                        <div class="gcAPP">
                            <div class="gcappcontentheader">
                                <img src="__PUBLIC__img/gcAPP.png" alt="">
                            </div>
                            <div class="gcappcontent" style="height: 220px">
                                <div class="editContent">
                                    <div class="editContentHeader">游戏APP</div>
                                    <div class="editcontentC">
                                        <notempty name="fp">
                                        <a class="btn btn-default" href="{$fp}" target="_blank" style="margin:30px 10px 30px 20px;">游戏app下载</a>
                                        <a class="btn btn-default link_copy_btn" data-clipboard-text="{$fp}" href="javascript:;" style="margin:30px 10px 30px 20px;">复制游戏app下载链接</a>
                                        </notempty>
                                        <a class='btn btn-success' id="geneappbtn" style="margin:30px 10px;">申请游戏APP</a>
<!--                                        <div class="div bbNum">版本号:11</div>
                                        <div class="div">大小:4.28M</div>-->
<!--                                        <div class="div"><span>网页版游戏中心：</span><a href="#" target="view_window" id="copy-1">http://mgwyx.com</a><div class="fuzhi fuzhi_1" data-clipboard-target="copy-1">复制</div></div>
                                        <div class="div daddress"><span>下载地址：</span><a href="#" target="view_window" id="copy-2">http://mgwyx.apk</a><div class="fuzhi fuzhi_2" data-clipboard-target="copy-2">复制</div></div>
                                        <div class="div dl"><div><a href="#" target="view_window">下载</a></div></div>-->
<!--                                        <div class="div ewm-box" style="">
                                            <span>二维码：</span>
                                            <div class="ewm">
                                                <img src="__PUBLIC__initMyGameCenter_files/9041918686169775.png" width="118" height="117" alt="">
                                                <p>立即下载<em>“手游福利社”</em>APP</p>
                                                <p>体验属于您自已的推广平台</p>

                                            </div>
                                        </div>-->

                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="phoneimg">
                        <img src="__PUBLIC__img/phoneimg.png" alt="">
                    </div>
                </div>
            </div>        
        </div>
    </div>
</section>
<script src="/public/js/clipboard.min.js"></script>
<script>
    $("nav .main_nav li").eq(2).addClass("active").siblings().removeClass("active");
    
    var clipboard = new Clipboard('.link_copy_btn');
    clipboard.on('success', function(e) {
        yxalert("复制链接成功！");
    });

    clipboard.on('error', function(e) {
        yxalert("复制链接失败，您的浏览器不支持此功能，请右键单击选择复制！");
    });
    
    $("#geneappbtn").click(function(){
        $.post("{:U('Agent/Promote/dopack_remote')}",{"type":"new"},function(data){

        yxalert(data.msg);
        setTimeout(function(){location.reload();},1000);
            
        });
    });
</script>


<agenttpl file="user_center_footer" />

